package my.edu.model.bills.purchase.entity.dto;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Null;
import jakarta.validation.groups.Default;
import lombok.Data;
import my.edu.common.validate.IntegerPattern;
import my.edu.common.validate.groups.Insert;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

@Data
public class PurchaseSalesExpensesDTO {
    //    private Long id;
    //private Long sourceDocumentId;//源单据ID
//    @NotNull(message = "采购费用供应商id不能为空")
//    private Long supplierId;//供应商ID
//    private String supplierName;
    @NotBlank(message = "支出类型不能为空")
    private String expenditureType;//支出类型
    @NotNull(message = "采购费用金额不能为空")
    private BigDecimal amount;
    //private BigDecimal unpaidExpense;//未付款费用
    @NotNull(message = "来往单位id不能为空")
    @Min(value = 1, message = "来往单位id要大于0")
    private Long sourceContactId;//源来往单位ID
    private String sourceContactName;
//    private Long otherExpenseDocumentId;//其他支出单ID
//    private String otherExpenseDocumentNo;
    //private String paymentStatus;//付款状态
    private String remark;
}